<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="恢复PVC">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="zh-cn_topic_0000001839260397.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="ZH-CN_TOPIC_0000001839260357">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>恢复PVC</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="ZH-CN_TOPIC_0000001839260357"></a><a name="ZH-CN_TOPIC_0000001839260357"></a>

<h1 class="topictitle1">恢复PVC</h1>
<div><p>当需要对已备份的PVC恢复时，可以参考本节恢复PVC至原位置或新位置。</p>
<div class="section"><h4 class="sectiontitle">背景信息</h4><p><span>OceanProtect</span>支持使用备份副本、复制副本（不支持恢复至原位置）、反向复制副本、归档副本（复制副本的归档副本不支持恢复至原位置）进行PVC恢复，支持恢复至原位置或新位置。</p>
</div>
<ul><li>恢复至原位置<p>将副本中的PVC恢复到副本所在命名空间下相同数据集的相同PVC中。</p>
</li><li>恢复至新位置<p>将选中的PVC副本恢复到目标Kubernetes集群中命名空间内的PVC中。</p>
</li></ul>
<div class="section"><h4 class="sectiontitle">前提条件</h4><ul><li>将PVC恢复到其他Kubernetes集群时，需要先将其他Kubernetes集群注册到<span>OceanProtect</span>中。注册操作请参见<a href="zh-cn_topic_0000001792381196.html">步骤3：注册集群</a>。</li><li>恢复的目标PVC不能为只读类型。</li><li>执行恢复前，请确保待恢复PVC大小小于或等于目标PVC大小，否则会造成恢复数据丢失风险。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="uicontrol" id="ZH-CN_TOPIC_0000001839260357__zh-cn_topic_0000001792381376_zh-cn_topic_0000001839142377_uicontrol17790342165415">“<span id="ZH-CN_TOPIC_0000001839260357__zh-cn_topic_0000001792381376_zh-cn_topic_0000001839142377_text679084235415">数据利用</span> &gt; <span id="ZH-CN_TOPIC_0000001839260357__zh-cn_topic_0000001792381376_zh-cn_topic_0000001839142377_text14790942175410">副本数据</span> &gt; <span id="ZH-CN_TOPIC_0000001839260357__zh-cn_topic_0000001792381376_zh-cn_topic_0000001839142377_text42195499217">容器</span> &gt; <span id="ZH-CN_TOPIC_0000001839260357__zh-cn_topic_0000001792381376_zh-cn_topic_0000001839142377_text729816765515">Kubernetes CSI</span>”</span>。</span></li><li><span>支持以资源维度或以副本维度查找副本，本节以资源维度为例进行说明。</span><p><p>在“<span>资源</span>”页签，根据数据集名称查找到需要恢复的数据集，并单击数据集名称。</p>
</p></li><li><span>在<span class="uicontrol">“<span>副本数据</span>”</span>页面，依次选择年、月、天找到副本。</span><p><p>当时间上显示<span><img src="zh-cn_image_0000001839180749.png"></span>，即表示该月、该天存在副本。</p>
</p></li><li><span>找到要恢复的副本，单击其右侧的“<span>更多</span> &gt; <span>PVC级恢复</span>”。</span></li><li><span>选择需要恢复的PVC，恢复到原位置或新位置。</span><p><ul><li>恢复到原位置<p>相关参数说明如<a href="#ZH-CN_TOPIC_0000001839260357__table52750616234">表1</a>所示。</p>

<div class="tablenoborder"><a name="ZH-CN_TOPIC_0000001839260357__table52750616234"></a><a name="table52750616234"></a><table cellpadding="4" cellspacing="0" summary="" id="ZH-CN_TOPIC_0000001839260357__table52750616234" frame="border" border="1" rules="all"><caption><b>表1 </b>恢复到原位置参数说明</caption><colgroup><col style="width:29.43%"><col style="width:70.57%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="29.43%" id="mcps1.3.5.2.5.2.1.1.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70.57%" id="mcps1.3.5.2.5.2.1.1.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="29.43%" headers="mcps1.3.5.2.5.2.1.1.2.2.3.1.1 "><p><span style="color:#6C7280;">覆盖规则</span></p>
</td>
<td class="cellrowborder" valign="top" width="70.57%" headers="mcps1.3.5.2.5.2.1.1.2.2.3.1.2 "><p>当副本和目标位置的PVC存在相同文件时，需要选择替换或忽略已存在的文件。仅支持对PVC数据设置覆盖规则。</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li>恢复到新位置<div class="p">相关参数说明如<a href="#ZH-CN_TOPIC_0000001839260357__table15668141795417">表2</a>所示。
<div class="tablenoborder"><a name="ZH-CN_TOPIC_0000001839260357__table15668141795417"></a><a name="table15668141795417"></a><table cellpadding="4" cellspacing="0" summary="" id="ZH-CN_TOPIC_0000001839260357__table15668141795417" frame="border" border="1" rules="all"><caption><b>表2 </b>恢复到新位置参数说明</caption><colgroup><col style="width:29.87%"><col style="width:70.13000000000001%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="29.87%" id="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70.13000000000001%" id="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="29.87%" headers="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.1 "><p><span>目标位置</span></p>
</td>
<td class="cellrowborder" valign="top" width="70.13000000000001%" headers="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.2 "><p>选择备份副本恢复的目标命名空间名。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="29.87%" headers="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.1 "><p><span>恢复目标位置</span></p>
</td>
<td class="cellrowborder" valign="top" width="70.13000000000001%" headers="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.2 "><p>选择备份副本恢复的目标命名空间下的PVC名。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="29.87%" headers="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.1 "><p><span style="color:#6C7280;">覆盖规则</span></p>
</td>
<td class="cellrowborder" valign="top" width="70.13000000000001%" headers="mcps1.3.5.2.5.2.1.2.1.2.2.3.1.2 "><p>当副本和目标位置的PVC存在相同文件时，需要选择替换或忽略已存在的文件。仅支持对PVC数据设置覆盖规则。</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</li></ul>
</p></li><li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span></li><li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="zh-cn_topic_0000001839260397.html">恢复</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>